﻿using ExamWeek01.Domain;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExamWeek01.Service.IService
{
    /// <summary>
    /// 角色接口
    /// </summary>
    public interface IRoleService:IBaseService<Role>
    {
        /// <summary>
        /// 获取角色列表
        /// </summary>
        /// <param name="roleName">角色名</param>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">页码</param>
        /// <param name="totalCount">总共</param>
        /// <param name="listCount">总数量</param>
        /// <returns>列表显示</returns>
        List<Role> GetRoles(string roleName, int pageIndex, int pageSize, out int totalCount, out int listCount);
        /// <summary>
        /// 添加角色信息
        /// </summary>
        /// <param name="role">角色实体</param>
        /// <returns>返回受影响行数</returns>
        int AddRole(Role role);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="rId">角色id</param>
        /// <returns></returns>
        int DeleteRole(int rId);
        /// <summary>
        /// 反填角色实体
        /// </summary>
        /// <param name="rId">角色id</param>
        /// <returns>实体</returns>
        Role GetRoleId(int rId);
   
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="role">角色</param>
        /// <returns>返回受影响行数</returns>
        int UpdRole(Role role);
       


    }
}
